/*
package com.suse.warmstill;

import com.baomidou.mybatisplus.generator.FastAutoGenerator;
import com.baomidou.mybatisplus.generator.config.OutputFile;

import java.util.Collections;

public class Generator {
    public static void main(String[] args) {
        //mysql账号密码
        FastAutoGenerator.create("jdbc:mysql://43.142.239.28:13306/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC",
                        "root",
                        "uIK[xtRpumjtn0+]3")
                .globalConfig(builder -> {
                    builder.author("黄靖") // 设置作者
                            .enableSwagger() // 开启 swagger 模式
                            .fileOverride() // 覆盖已生成文件
                            .outputDir("C:\\Users\\ADMIN\\Desktop\\大创\\warmstill-parent\\src\\main\\java\\com\\example\\"); // 指定输出目录
                })
                .packageConfig(builder -> {
                    //设置父包
                    builder.parent("com.suse.warmstill")
                            // 设置mapperXml生成路径
                            .pathInfo(Collections.singletonMap(OutputFile.mapperXml, "C:\\Users\\ADMIN\\Desktop\\大创\\warmstill-parent\\src\\main\\resources\\mapper"));
                })

                .strategyConfig(builder -> {
                    //配置 数据库的前缀
                    builder.addFieldPrefix("dec_")
                            .entityBuilder().enableLombok()
                            .controllerBuilder()
                            .serviceBuilder()
                            .mapperBuilder();
                })
                .execute();

    }
}
*/
